package com.songtech.common.dictionary.service.impl;

import com.songtech.common.dictionary.bean.SysDictionary;
import com.songtech.common.dictionary.dao.SysDictionaryMapper;
import com.songtech.common.dictionary.service.SysDictionaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: RENTIE
 * Date: 2018-06-19 9:38
 */
@Service
public class SysDictionaryServiceImpl implements SysDictionaryService {

    @Resource
    private SysDictionaryMapper sysDictionaryMapper;


    @Override
    public List<SysDictionary> selectProduct(String dictgroupId) throws Exception {
        return sysDictionaryMapper.selectProduct(dictgroupId);
    }

    @Override
    public List<SysDictionary> selectVersion(String dictId) throws Exception {
        return sysDictionaryMapper.selectVersion(dictId);
    }

    @Override
    public List<SysDictionary> selectStoreByCode(String code) {
        return sysDictionaryMapper.selectStoreByCode(code);
    }
}
